#include "PlatformProperty.h"
//自定义按键默认值
VENDOR_READ_PROPERTY(CUSTOM_KEY_TYPE_NONE, int32_t) {
    builder.area(VehicleArea::GLOBAL)
            .initValue([]() {
                return 0;
            })
            .withStatusBySignals([]([[maybe_unused]] const PropertyStatus &last) {
                VHALOG.d("halWithStatusBySignals CUSTOM_KEY_TYPE_NONE :  usgmod[%d] carmod[%d] ",
                    toInt(SIGNAL.getVehModMngtGlbSafe1UsgModSts()),
                    toInt(SIGNAL.getVehModMngtGlbSafe1CarModSts1()));
                if (SIGNAL.usgModeIs(sdb::UsgModSts1::UsgModActv,sdb::UsgModSts1::UsgModDrvg,sdb::UsgModSts1::UsgModCnvinc) &&
                        SIGNAL.carModeIs(sdb::CarModSts1::CarModNorm)){
                   VHALOG.d("halWithStatusBySignals CUSTOM_KEY_TYPE_NONE : Active ");
                   return PropertyStatus::Active;
                } else {
                   VHALOG.d("halWithStatusBySignals CUSTOM_KEY_TYPE_NONE : NotActive ");
                   return PropertyStatus::NotActive;
                }
            },SignalRX::VehModMngtGlbSafe1UsgModSts,SignalRX::VehModMngtGlbSafe1CarModSts1);
}